package com.ruoyi.shopping_products.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品操作日志记录对象 pd_oper_log
 * 
 * @author ruoyi
 * @date 2023-10-23
 */
public class PdOperLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 日志主键 */
    private Long operId;

    /** 商品id */
    @Excel(name = "商品id")
    private String operPdId;

    /** 商品名 */
    @Excel(name = "商品名")
    private String operPdName;

    /** 操作类型（0删除 1增加 2修改） */
    @Excel(name = "操作类型", readConverterExp = "0=删除,1=增加,2=修改")
    private String operType;

    /** 主机IP */
    @Excel(name = "主机IP")
    private String operIp;

    /** 操作地点 */
    @Excel(name = "操作地点")
    private String operLocation;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operTime;

    public void setOperId(Long operId) 
    {
        this.operId = operId;
    }

    public Long getOperId() 
    {
        return operId;
    }
    public void setOperPdId(String operPdId) 
    {
        this.operPdId = operPdId;
    }

    public String getOperPdId() 
    {
        return operPdId;
    }
    public void setOperPdName(String operPdName) 
    {
        this.operPdName = operPdName;
    }

    public String getOperPdName() 
    {
        return operPdName;
    }
    public void setOperType(String operType) 
    {
        this.operType = operType;
    }

    public String getOperType() 
    {
        return operType;
    }
    public void setOperIp(String operIp) 
    {
        this.operIp = operIp;
    }

    public String getOperIp() 
    {
        return operIp;
    }
    public void setOperLocation(String operLocation) 
    {
        this.operLocation = operLocation;
    }

    public String getOperLocation() 
    {
        return operLocation;
    }
    public void setOperTime(Date operTime) 
    {
        this.operTime = operTime;
    }

    public Date getOperTime() 
    {
        return operTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("operId", getOperId())
            .append("operPdId", getOperPdId())
            .append("operPdName", getOperPdName())
            .append("operType", getOperType())
            .append("operIp", getOperIp())
            .append("operLocation", getOperLocation())
            .append("operTime", getOperTime())
            .toString();
    }
}
